package cn.jarlen.android.plugin

class GitVerBuilder implements VerBuilder {

    @Override
    String getBuilderName() {
        return VerUtils.isInJenkins() ? "jenkins build by " : "local build by " + VerUtils.getGitUserName()
    }

    @Override
    String getCodeBranch() {
        return VerUtils.getGitBranch()
    }

    @Override
    String getCodeSHA() {
        return VerUtils.getGitSHA()
    }

    @Override
    String getRepUrl() {
        return VerUtils.getGitRepUrl()
    }

    @Override
    String getRepManager() {
        return "GIT"
    }
}